<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<title>档案管理联系方式</title>	
		{include file="public/web_top"}
	</head>
	<body>
	<div class="xiazai">
		<h2>我要做一个一样的</h2>
		<div class="xiazai_show">
			添加微信 <span>weicheng0526</span>
		</div>
		<div class="btn" onclick="copy('weicheng0526')">复制微信</div>
		<div class="fuzhichenggong">复制成功</div>
	</div>
	<script src="__PUBLIC__/m/js/jquery-1.11.3.min.js"></script>
	<script type="text/javascript">
		function copy(str) {
			$(".fuzhichenggong").show();
		    const input = document.createElement("input");
		    input.readOnly = 'readonly';
		    input.value = str;
		    document.body.appendChild(input);
		    input.select();
		    input.setSelectionRange(0, input.value.length);
		    document.execCommand('Copy');
		    document.body.removeChild(input);
		    setTimeout(function() {
		    	$(".fuzhichenggong").hide();
		    }, 3000);
		}
	</script>
	</body>
</html>
